import React, { Component } from "react"
import { Tabs } from 'antd';
import Recharge from './component/recharge';
import Withdraw from './component/withdraw';
export default class EmbodiedRecharge extends Component {
  constructor() {
    super()
    this.FormRef = React.createRef()
    this.state = {
      tabValue: '1', //tab选中的值
    }
  }
  // tab切换
  tabChange = (e) => {
    this.setState({
      tabValue: e
    })
  }
  render() {
    return (
      <div className="p-layout-box">
        <Tabs
          onChange={(value) => this.tabChange(value)}
          type="card"
          defaultActiveKey={this.state.tabValue}
        ><Tabs.TabPane tab="充值配置" key='1'>
            <Recharge />
          </Tabs.TabPane>
          <Tabs.TabPane tab="提现配置" key='2'>
            <Withdraw />
          </Tabs.TabPane>
        </Tabs>


      </div>
    );
  }
}